<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>左图</title>
    <link rel="stylesheet" type="text/css" href="__CSS__api.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__aui.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__common.css" />

    <style>
        .aui-bar-nav .aui-iconfont {
            position: relative;
            font-family: "aui_iconfont" !important;
            font-size: 0.75rem;
            color: #E73C5C;
            font-style: normal;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            height: 2.4rem;
        }

        .aui-bar-nav {
            background-color: #fff;
        }

        .aui-icon-tu {
            height: 2.4rem;
            width: 49px;
            background: url('__IMG__left.png') no-repeat 0.5rem center;
            background-size: 22px 22px;
        }

        .aui-bar-nav .aui-pull-right {
            padding-right: 0.75rem;
        }

        .aui-bar-nav .aui-title {
            font-size: 0.9rem;
            color: #333333;
            font-weight: 500;
        }
        body{
            background-color: #F5F5F5;
        }
        .text{
            background-color:#FFFFFF;
            width: 100%;
            height: 8rem;
            padding-top:0.2rem;
        }
        .advice {
            background: #FFFFFF;
            color: #333333;
            height: 6.5rem;
            font-size: 0.7rem;
            line-height: 0.6rem;
            overflow-y: auto;
            word-break: break-all;
            word-wrap: break-word;
            background-color: #FFFFFF;
        }
        .contentt{
            margin-left: 0.75rem;
            box-shadow:1px 0px 0px rgba(237,235,235,1);
            height: 6.75rem;
        }
        .shuzi {
            font-size: 0.7rem;
            line-height: 0.6rem;
            color: #999999;
            text-align: right;
            padding-right: 0.75rem;
        }
        .butt{
            width:100%;
            height:2.5rem;
            background:rgba(231,60,92,1);
            border-radius:5px;
            font-size:0.8rem;
            text-align: center;
            color:#FFFFFF;
            line-height: 2.5rem;
        }
        .box{
            padding: 2.3rem 0.75rem 0 0.75rem;
        }
    </style>
</head>

<body>
<div class="l_box"  id="loading2"><img src="__IMG__loading.gif" alt="" id="loading"></div>

<header class="aui-bar aui-bar-nav underLine" style="padding-top:25px;" id="header">
    <a class="aui-pull-left" tapmode="active" onclick="history.go(-1)"> <span class="aui-iconfont aui-icon-tu"> </span> </a>
    <div class="aui-title">意见反馈</div>
</header>
<div class="text underLine">

    <div class="contentt">
        <textarea placeholder="请填写您的意见，我们将不断改进，谢谢！" class="advice" id="text1" maxlength="200"></textarea>
        <div class="shuzi"><span id="num1">0</span>/<span id="num2">200</span></div>
    </div>

</div>
<div class="box">
    <div class="butt" onclick="tijiao();">
        提交
    </div>
</div>
<div class="toast-wrap">
    <span class="toast-msg"></span>
</div>
</body>
<script type="text/javascript" src="__JS__jquery.min.js"></script>
<script type="text/javascript" src="__JS__api.js"></script>
<script type="text/javascript" src="__JS__tt.js"></script>
<script type="text/javascript" src="__JS__common.js"></script>
<script type="text/javascript">
    function tijiao() {
        allinputclose();
       var text1 =$.trim($('#text1').val());
        if (text1==''){
            toast('请输入内容后提交');
            return;
        }
        loaddingOpen();
        $.ajax({
            url:'{:url("my/createFeedback")}',
            data:'content='+text1,
            type:'POST',
            dataType:'JSON',
            success: function(data){
                console.log(data);
                loaddingClose();
                if (data.status=='200') {
                    toast('提交成功');
                    setTimeout(function () {
                        window.history.go(-1);
                    },500)


                }else {
                    toast(data.msg);
                }



            },
            error: function(xhr, type){
                loaddingClose();
                toast('无网络或连接超时，请重试');

            }
        });

    }
</script>

</html>
